import request from '@/utils/request.js'

export function getGenealogyList(data){
	return request({
		url:'/record/genealogy/list',
		method:'get',
		data:data
	})
}

export function getGenealogyListToday(data){
	return request({
		url:'/record/genealogy/list/today',
		method:'get',
		data:data
	})
}

export function addGenealogy(data){
	return request({
		url:'/record/genealogy',
		method:'post',
		data:data
	})
}

export function editGenealogy(data){
	return request({
		url:'/record/genealogy',
		method:'put',
		data:data
	})
}

export function deleteGenealogy(data){
	return request({
		url:'/record/genealogy/'+data,
		method:'delete'
	})
}

export function getGenealogy(data){
	return request({
		url:'/record/genealogy/'+data,
		method:'get'
	})
}